<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>升级包详情</title>
	<%@ include file="/pages/common/common.jsp" %>		
	<link rel="stylesheet" type="text/css" href="${ctx}/css/register.css" />
	<style type="text/css">
		td.autd1{
			font-weight: bold;
		}
		td.autd2{
			border-bottom: 1px dotted;
		}
	</style>
	<script type="text/javascript">
		
	
	</script>	
  </head>
  <body style="margin:0;padding:0;height:100%;overflow:scroll;background:#fff">
  <form class="auform" id="regForm" method="post">
  <div id="register_div">
  	<h2>查看升级包详情</h2>
	<div class="demo-info">
		<div class="demo-tip icon-tip"></div>
		<div>欢迎来到升级管理平台-升级包详情页面</div>
	</div>
	<div class="info_div">
		<div class="info_title">${pack.upName}详情</div>
		<div class="info_content">
			<table>	
				<tr>
					<td class="autd1">升级包编码：</td>
					<td class="autd2">${pack.upCode}</td>
					<td class="autd1">升级类型：</td>
					<td class="autd2">
					<c:choose>
						<c:when test="${pack.upType eq status.BAG_PRO}">
						产品
						</c:when>
						<c:when test="${pack.upType eq status.BAG_UPPK}">
						产品补丁
						</c:when>
						<c:when test="${pack.upType eq status.BAG_PLUG}">
						插件
						</c:when>
						<c:when test="${pack.upType eq status.BAG_PLUGUPPK}">
						插件补丁
						</c:when>
						<c:when test="${pack.upType eq status.BAG_REPORT}">
						报表
						</c:when>
						<c:when test="${pack.upType eq status.BAG_REPORTUPPK}">
						报表升级
						</c:when>
					</c:choose>
					</td>	
					<td class="autd1">产品编码：</td>
					<td class="autd2">${pack.proCode}</td>				
				</tr>
				<tr>
					<td class="autd1">费用描述：</td>
					<td class="autd2">${pack.price}</td>
					<td class="autd1">消费类型：</td>
					<td class="autd2">
					<c:choose>
						<c:when test="${pack.consumType eq status.COST_ONCE}">
						一次性
						</c:when>
						<c:when test="${pack.consumType eq status.COST_FREE}">
						免费
						</c:when>
						<c:when test="${pack.consumType eq status.COST_KEEP}">
						续费性
						</c:when>
					</c:choose>
					</td>	
					<td class="autd1">支持版本：</td>
					<td class="autd2">${pack.suptVersion}</td>				
				</tr>
				<tr>
					<td class="autd1">支持修正号：</td>
					<td class="autd2">${pack.suptRevision}</td>
					<td class="autd1">出厂版本：</td>
					<td class="autd2">${pack.exVersion}</td>
					<td class="autd1">MD5值：</td>
					<td class="autd2">${pack.md5Value}</td>			
				</tr>
				<tr>
					<td class="autd1">发布日期：</td>
					<td class="autd2"><fmt:formatDate value="${pack.releaseDate}" pattern="yyyy-MM-dd"/></td>
					<td class="autd1">作者：</td>
					<td class="autd2">${pack.author}</td>
					<td class="autd1">下载次数：</td>
					<td class="autd2">${pack.downTotal}</td>				
				</tr>
				<tr>
					<td class="autd1">是否已推送：</td>
					<td class="autd2">
					<c:choose>
						<c:when test="${pack.isPush eq true}">
						是
						</c:when>
						<c:otherwise>
						否
						</c:otherwise>
					</c:choose>
					</td>	
					<td class="autd1">状态：</td>
					<td class="autd2">
					<c:choose>
						<c:when test="${pack.state eq status.UPPK_STATE_NORMAL}">
						正常
						</c:when>
						<c:when test="${pack.state eq status.UPPK_STATE_BLOCK}">
						锁定
						</c:when>
						<c:when test="${pack.state eq status.UPPK_STATE_DELETE}">
						废除
						</c:when>
					</c:choose>
					
					</td>	
					<td></td>
					<td></td>			
				</tr>
				<tr>
					<td class="autd1">简单描述：</td>
					<td colspan="5" class="autd2">${pack.description}</td>
				</tr>
				<tr>
					<td class="autd1">详情：</td>
					<td colspan="5" class="autd2">${pack.detail}</td>
				</tr>
			</table>
		</div>
	</div>
	
	
	<div class="btn_div">
		<a onclick="window.print();" class="easyui-linkbutton" iconCls="icon-print">打印</a>
		<a onclick="history.go(-1);" class="easyui-linkbutton" iconCls="icon-close">返回</a>
	</div>
</div>
</form>
</body>

</html>
